package com.qin.springbootdemo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;

/**
 * @author Leisure
 * create 2022 2022/6/18 10:02
 **/
@Data   //自动生成getter,setter方法
@Document(collection = "commodities")  //表名
@AllArgsConstructor
@NoArgsConstructor
public class commodities {
    @Id
    String _id;

    String typeID;

    String goodsImage;

    String typeImage;

    String typeTitle;

    ArrayList<goods> goods =  new ArrayList<goods>();
}
